package com.xinongbest.reader.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.xinongbest.reader.entity.Book;

public interface BookService {
    /**
     * <h2>分页查询图书</h2>
     *
     * @param page     页号
     * @param pageSize 每页条数
     * @return 分页对象
     */
    IPage<Book> paging(Long categoryId, String order, Integer page, Integer pageSize);

    /**
     * <h2>查询书籍详情</h2>
     *
     * @param bookId 书籍ID
     * @return Book对象
     */
    Book selectById(Long bookId);
}
